package com.explore.controller;

import com.explore.config.MyConfig;
import com.explore.xxx.XXXConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class helloController {
    @Autowired
    private MyConfig myConfig;
    @Autowired
    private XXXConfig xxxConfig;
    @GetMapping("/world")
    public String hello() {
        myConfig.hello();
        xxxConfig.say();
        return "你好世界";
    }
}
